@extends('model/admin')
@section('title','用户状态修改')
@section('content')
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>用户状态修改</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/member/{{$id}}" method='post' enctype='multipart/form-data'>
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">用户名</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='username' value="{{$res['username']}}" readonly>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">电话</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='phone' value="{{$res['phone']}}" readonly>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">邮箱</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name='email' value="{{$res['email']}}" readonly>
        				</div>
        			</div>        			
        			<div class="mws-form-row">
        				<label class="mws-form-label">用户等级</label>
        				<div class="mws-form-item clearfix">
        					<ul class="mws-form-list inline">
        						<li><input type="radio" name='state' value="0" @if($res['state']==0) checked @else '' @endif> <label>普通用户</label></li>
        						<li><input type="radio" name='state' value='1' @if($res['state']==1) checked @else '' @endif> <label>初级会员</label></li>
        						<li><input type="radio" name='state' value='2' @if($res['state']==2) checked @else '' @endif> <label>中级会员</label></li>
        						<li><input type="radio" name='state' value='3' @if($res['state']==3) checked @else '' @endif> <label>高级会员</label></li>
        						<li><input type="radio" name='state' value='4' @if($res['state']==4) checked @else '' @endif> <label>特级会员</label></li>
        					</ul>
        				</div>
        			</div>
        		</div>
        		{{ csrf_field() }}
        		<input type="hidden" name='_method' value='PUT'>
        		<div class="mws-button-row">
        			<input type="submit" value="确认修改" class="btn btn-danger">
        			<input type="reset" value="重新填写" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection